package com.lw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lw.system.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    @Select( "select * from permission where id in (select permission_id from role_permission where role_id=#{id})" )
    List<Permission> findById(String id);
}
